package com.sina.shop.manage.service.collect;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.collect.CollectGoods;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-01-16-9:30
 */
public interface CollectGoodsManageService extends BaseService {

    CollectGoods getCollectGoodsById(Long id);

    int deleteCollectGoods(Long id) throws DataException, UpdateException;

    CollectGoods saveCollectGoods(CollectGoods collectGoods) throws CreateException, ResourceExistsException, DataException;

    CollectGoods updateCollectGoods(CollectGoods collectGoods) throws UpdateException, DataException;

    List<Map<String, Object>> getCollectGoodsList(CollectGoods collectGoods, Long count[]);

    CollectGoods getCollectGoodsByAidAndGid(Long aid, Long gid);
}
